POV-Ray : Newsgroups : povray.beta-test : Torus artifacts with distant camera and small angle : Torus artifacts with distant camera and small angle Server Time
29 Jul 2024 22:33:19 EDT (-0400)
  Torus artifacts with distant camera and small angle  
From: Scott Gammans
Date: 21 Feb 2002 11:36:14
Message: <3c7521fe$1@news.povray.org>
I've been having no luck getting orthographic cameras to work with the new
syntax introduced a few versions ago, so while waiting for the documentation
to catch up on this feature I've been trying to simulate orthographic views
by placing the camera very far away and using a very small angle to zoom in.
That's how I stumbled on this bug:

/***** START *****/
torus {10,5 texture {pigment {color rgb 0.8}}}


//camera {location <0,100,0> look_at <0,0,0> angle 75}
camera {location <0,5000,0> look_at <0,0,0> angle 1.5}

light_source {<0,10000,0> color <1,1,1>}
/****** END ******/

If you use the first camera, the scene renders correctly. If you use the
second far-away camera, all kinds of surface artifacts appear on the torus.
None of the other primitives that I use in my scenes (box, sphere, cylinder,
plane, cone, prism, text) show these artifacts, but there are several that I
don't use so I haven't checked them all.

This looks exactly like what happens with a sphere_sweep object if the
tolerance value isn't set correctly. Is POV-Ray using sphere_sweep under the
covers to implement torus? Or is this bug part of the ongoing changes in the
camera object?

Thanks,
Scott Gammans


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.